﻿<%@ Page Title="案例列表" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true"
    CodeBehind="ProjectList.aspx.cs" Inherits="LEARNREN.COM.WebSite.Administrator.ProjectList" %>

<%@ Register Src="../UserDefinedControls/CatalogueTree.ascx" TagName="CatalogueTree"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="common_table">
        <tr>
            <td class="common_table_left" valign="top">
                <uc1:CatalogueTree ID="CatalogueTree1" runat="server" OnSelectedNodeChanged="CatalogueTree1_SelectedNodeChanged"
                    CanClickNodeType="ProductList" />
            </td>
            <td  valign="top">
                <div class="commonContent">
                    <fieldset>
                        <legend>案例列表</legend>
                        <asp:GridView ID="gvProjects" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                            BorderWidth="1px" CellPadding="4" CssClass="gridViewClass" OnPageIndexChanging="gvProjects_PageIndexChanging"
                            PageSize="20" OnRowDeleting="gvProjects_RowDeleting" DataKeyNames="Id"
                            EmptyDataText="没有案例信息。" ForeColor="Black" GridLines="Vertical">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:HyperLinkField DataNavigateUrlFields="Id" DataTextField="ProjectName"
                                    HeaderText="案例名称" Target="_blank" DataNavigateUrlFormatString="~/ProjectDetail.aspx?id={0}" />
                                <asp:BoundField DataField="ProjectDate" HeaderText="日期" DataFormatString="{0:d}">
                                    <ItemStyle HorizontalAlign="Center" Width="80px" />
                                </asp:BoundField>
                                <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Administrator/ProjectEdit.aspx?id={0}&amp;action=edit"
                                    HeaderText="编辑" Text="编辑">
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:HyperLinkField>
                                <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
                                    HeaderText="删除" ShowDeleteButton="True">
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:CommandField>
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                    </fieldset>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
